<template>
  <div class="post-list">
    <div v-for="(post, index) in postList" :key="post.id">
      <el-divider v-if="index!==0"/>
      <post :post-data="post"/>
    </div>
  </div>
</template>

<script>
import Post from '@/components/PostList/components/Post'

export default {
  name: 'PostList',
  props: {
    postList: {
      required: true
    }
  },
  components: {
    Post
  }
}
</script>

<style scoped lang="less">
.post-list {
  //width: 710px;
  margin: 0 auto;
  //background-color: @background;
  .el-divider {
    margin: 0;
  }
}
</style>
